package com.liaoye.demo_01;

public class YourThread implements Runnable {

    private String name;

    public YourThread(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
            System.out.println(Thread.currentThread().getName() + " 第 " + i + "次启动！");
        }
    }
}
